home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / www / library / implemen / htftp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.1 KB  |  54 lines

  1. /*                                                               FTP access module for libwww
  2.                                    FTP ACCESS FUNCTIONS
  3.                                              
  4.    This isn't really  a valid protocol module -- it is lumped together with HTFile . That
  5.    could be changed easily.
  6.    
  7.    Author: Tim Berners-Lee. Public Domain. Please mail changes to timbl@info.cern.ch
  8.    
  9.  */
  10. #ifndef HTFTP_H
  11. #define HTFTP_H
  12.  
  13. #include "HTUtils.h"
  14. #include "HTAnchor.h"
  15. #include "HTStream.h"
  16. #include "HTParse.h"
  17.  
  18. #define FILE_BY_NAME 0 
  19. #define FILE_BY_TYPE 1
  20. #define FILE_BY_SIZE 2
  21. #define FILE_BY_DATE 3
  22. extern BOOLEAN HTfileSortMethod;  /* specifies the method of sorting */
  23.  
  24. /*
  25.  
  26. Retrieve File from Server
  27.  
  28.   ON EXIT,
  29.   
  30.   returns                 Socket number for file if good.<0 if bad.
  31.                          
  32.  */
  33. extern int HTFTPLoad PARAMS
  34. ((
  35.   CONST char *          name,
  36.   HTParentAnchor *      anchor,
  37.   HTFormat              format_out,
  38.   HTStream*             sink
  39. ));
  40.  
  41.  
  42. /*
  43.  
  44. Return Host Name
  45.  
  46.  */
  47. extern CONST char * HTHostName NOPARAMS;
  48.  
  49. #endif
  50.  
  51. /*
  52.  
  53.    end  */
  54.